package com.eternal.peaceworld.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 加密器配置属性类
 */
@ConfigurationProperties(prefix = "encryptor")
public class EncryptorProperties {

    /**
     * 加密类型，支持 aes、sm4 等
     */
    private String type = "aes";

    /**
     * 加密密钥
     */
    private String key;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
